class_name ManaUI
extends Panel

@export var mana_label : Label
@export var player_handler:PlayerHandler

func _ready() -> void:
	player_handler.player_mana_changed.connect(on_player_mana_changed)

func on_player_mana_changed(cur_mana:int) -> void:
	mana_label.text = "%s/%s" % [cur_mana, player_handler.max_mana]
